﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>把网站作为用户的Active桌面</title>
    <script type="text/javascript" language="JavaScript">
        function setDesktop()
        {
            window.external.AddDesktopComponent("http://www.baidu.com","website",0,0,800,600);//将百度设置为桌面
        }
    </script>
</head>
<body>
<input onclick="setDesktop()" type="button" value="点这里看看是什么效果" name="Button2" />
</body>
</html>